import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 在max3这个函数中，调用max2函数，来实现3个数的最大值计算
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-04-18  12:37
 */
public class Test {
    public static int max2(int a, int b) {
        if(a > b){
            return a;
        }else {
            return b;
        }
    }
    public static int max3(int max2,int c) {
        if(max2 > c) {
            return max2;
        } else {
            return c;
        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        System.out.println(max2(a, b));
        int c = scanner.nextInt();
        System.out.println(max3(max2(a, b), c));

    }
}
